package pl.pasu.mydiet.domain;

import pl.pasu.mydiet.client.dto.ConstProductDTO;

public class ConstProduct {
	private Long id;
	private String name;
	private int type;
	private int subtype;
	private int group;
	private String description;

	public ConstProduct() {
	}

	public ConstProduct(Long id) {
		this.id = id;
	}

	public ConstProduct(ConstProductDTO prod) {
		this.id = prod.getId();
		this.name = prod.getName();
		this.type = prod.getType();
		this.subtype = prod.getSubtype();
		this.group = prod.getGroup();
		this.description = prod.getDescription();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getSubtype() {
		return subtype;
	}

	public void setSubtype(int subtype) {
		this.subtype = subtype;
	}

	public int getGroup() {
		return group;
	}

	public void setGroup(int group) {
		this.group = group;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
